package edu.jxnu.zhangjinsong.unemploymenttracker.entity;

import com.baomidou.mybatisplus.annotation.*;
import org.apache.ibatis.type.JdbcType;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("job")
public class Job {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField
    private String title;

    @TableField
    private String org;

    @TableField
    private String location;

    @TableField
    private String salary;

    @TableField(jdbcType = JdbcType.LONGVARCHAR)
    private String skills;

    @TableField(jdbcType = JdbcType.LONGVARCHAR)
    private String requirements;

    @TableField(jdbcType = JdbcType.LONGVARCHAR)
    private String description;
    
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}